package com.cr4y0n.crayonpicturebackend.controller;

import com.cr4y0n.crayonpicturebackend.common.BaseResponse;
import com.cr4y0n.crayonpicturebackend.common.ResultUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author cr4y0n
 * @version 1.0.0
 */
@RestController
@RequestMapping("/")
@Api(tags = "健康检查")
public class MainController {

    @GetMapping("/health")
    @ApiOperation("健康检查")
    public BaseResponse<String> health() {
        return ResultUtils.success("ok");
    }
}
